package autotest.util;

import java.util.Properties;

public class HttpUtil {
	public static void main(String[] args) {
		System.out.println(HttpUtil.getURL("/config.properties", "url_prefix", "/http/getCaptchaFromSession"));
	}

	public static String getURL(String urlPrex, String path) {
		return urlPrex + path;
	}

	public static String getURL(String propFile, String prefix, String path) {
		Properties prop = PropUtil.getProperties(propFile);
		String urlPrex = prop.getProperty(prefix);
		return urlPrex + path;
	}
}